Home:ALL Converter>From windows linux subsytem could not connect windows 10 psql

From windows linux subsytem could not connect windows 10 psql

Ask Time:2018-11-13T02:48:49         Author:Shakil

Json Formatter

I have install psql10 in my windows 10. It is installed successfully and running in port 5432 properly. From linux subsystem i am trying to connect my app with psql 10. But getting this error

django.db.utils.OperationalError: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

One possible solution that i am thinking is to install psql in linux subsystem but i thought there might be way from that i can connect psql. I am a new user of windows10.

Author:Shakil,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/53268327/from-windows-linux-subsytem-could-not-connect-windows-10-psql
yy